package com.lizhe.config.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 类描述:自定义配置 *
 *
 * @author Lz on 2021-10-21
 */

@Data
@Component
public class PersonProperties {

    @Value("${person.person-name}")
    private String name;

    @Value("${person.person-age}")
    private Integer age;

    @Value("${family.family-name}")
    private String familyName;
}
